/*
 * Copyright (c) 2019-2020, https://api.iot.10086.cn/(https://gitee.com/cmcc-iot-api/iot-card-open-application/).
 */
package cn.iot.card.open.sim.dto.siminfo;

/**
 * 物联卡数据通信服务（PCC策略）开停 DTO
 *
 */
public class GprsPccFunctionDTO {

    /**
     * msisdns 物联卡号
     */
    private String msisdns;
    /**
     * 操作类型：
     * 0：暂停
     * 1：恢复
     */
    private String operType;

    /**
     * apnName apn名称
     */
    private String apnName;

    /**
     * pccCode pcc码
     */
    private String pccCode;

    public String getMsisdns() {
        return msisdns;
    }

    public void setMsisdns(String msisdns) {
        this.msisdns = msisdns;
    }

    public String getOperType() {
        return operType;
    }

    public void setOperType(String operType) {
        this.operType = operType;
    }

    public String getApnName() {
        return apnName;
    }

    public void setApnName(String apnName) {
        this.apnName = apnName;
    }

    public String getPccCode() {
        return pccCode;
    }

    public void setPccCode(String pccCode) {
        this.pccCode = pccCode;
    }

    @Override
    public String toString() {
        StringBuilder stringBuilder = new StringBuilder();
        stringBuilder.append("物联卡号:").append(msisdns).append(",");
        stringBuilder.append("APN名称:").append(apnName).append(",");
        if ("0".equals(operType)) {
            stringBuilder.append("操作类型:").append("恢复").append(",");
        } else if ("1".equals(operType)) {
            stringBuilder.append("操作类型:").append("暂停").append(",");
        }
        stringBuilder.append("应用层级code:").append(pccCode);
        return stringBuilder.toString();
    }
}
